<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改票据报销申请')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-apply-edit" th:object="${sysBillApply}">
            <input name="billApplyId" th:field="*{billApplyId}" type="hidden">
            <input name="billId" th:field="*{billId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">发票编号：</label>
                <div class="col-sm-8">
                    <input id="invoiceNum"  readonly th:value="${sysBill.invoiceNum}" name="invoiceNum" class="form-control" type="text"  required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">总计金额：</label>
                <div class="col-sm-8">
                    <input id="totalAmount" readonly th:value="${sysBill.totalAmount}" name="totalAmount" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">开票日期：</label>
                <div class="col-sm-8">
                    <input id="invoiceDate" readonly th:value="${sysBill.invoiceDate}" name="invoiceDate" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">购买方：</label>
                <div class="col-sm-8">
                    <input id="purchaserName" readonly th:value="${sysBill.purchaserName}" name="purchaserName" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">销售方：</label>
                <div class="col-sm-8">
                    <input id="sellerName" name="sellerName"  readonly th:value="${sysBill.sellerName}" class="form-control"  type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">单位：</label>
                <div class="col-sm-8">
                    <input id="unit" name="unit" readonly th:value="${sysBill.unit}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">规格：</label>
                <div class="col-sm-8">
                    <input id="type" name="type" readonly th:value="${sysBill.type}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">数量：</label>
                <div class="col-sm-8">
                    <input id="num" name="num" readonly th:value="${sysBill.num}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">价格：</label>
                <div class="col-sm-8">
                    <input id="price" name="price" readonly th:value="${sysBill.price}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <input id="amount" name="amount" readonly th:value="${sysBill.amount}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">税率：</label>
                <div class="col-sm-8">
                    <input id="taxRate" name="taxRate" readonly th:value="${sysBill.taxRate}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">税额：</label>
                <div class="col-sm-8">
                    <input id="tax" name="tax" readonly th:value="${sysBill.tax}" class="form-control"  type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" th:field="*{remark}" readonly class="form-control"></textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">审核状态：</label>
                <div class="col-sm-8">
                    <input type="radio"  name="status" value="1" checked>
                    <label>通过</label>
                    <input type="radio"  name="status" value="2" >
                    <label>未通过</label>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">审核原因：</label>
                <div class="col-sm-8">
                    <textarea name="reason"  class="form-control" ></textarea>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/apply";
        $("#form-apply-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/editCw", $('#form-apply-edit').serialize());
            }
        }
    </script>
</body>
</html>